package com.chzc.fm.duotin.event;

import com.chzc.fm.duotin.bean.mine.FileInfo;

import java.util.List;
import java.util.Queue;

/**
 * Created by BillSinla on 2016/7/11.
 */
public class DownloadEvent {
    //下载完成状态(无任务)
    public static final int NONE = 0;
    //暂停状态
    public static final int PAUSE = 1;
    //继续状态
    public static final int PREPARE = 2;
    //更新状态
    public static final int UPDATE = 3;
    //更新下载内容
    public static final int UPDATE_FILE = 4;

    private int state;
    private Queue<FileInfo> fileInfoQueue;
    private List<FileInfo> fileInfoList;
    private int progress;

    public DownloadEvent() {
    }

    public DownloadEvent(Queue<FileInfo> fileInfoQueue, int state, int progress) {
        this.fileInfoQueue = fileInfoQueue;
        this.state = state;
        this.progress = progress;
    }

    public DownloadEvent(int state, List<FileInfo> fileInfoList, int progress) {
        this.state = state;
        this.fileInfoList = fileInfoList;
        this.progress = progress;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<FileInfo> getFileInfoList() {
        return fileInfoList;
    }

    public void setFileInfoList(List<FileInfo> fileInfoList) {
        this.fileInfoList = fileInfoList;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public Queue<FileInfo> getFileInfoQueue() {
        return fileInfoQueue;
    }

    public void setFileInfoQueue(Queue<FileInfo> fileInfoQueue) {
        this.fileInfoQueue = fileInfoQueue;
    }
}
